:root {
    /* 亮色主题变量 */
    --primary-100: #8FBF9F;
    --primary-200: #68a67d;
    --primary-300: #24613b;
    --accent-100: #F18F01;
    --accent-200: #833500;
    --text-100: #353535;
    --text-200: #5f5f5f;
    --bg-100: #F5ECD7;
    --bg-200: #E6DCC6;
    --bg-300: #D4C8B0;
    --success-light: #d3e4ff;
    --success: #27ae60;
    --danger-light: #ffd3d3;
    --danger: #e74c3c;
    --text-300: #808080;
    --btn-100:#3498db;

}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-100);
    display: flex;
    height: 100vh;
    color: var(--text-100);
}

/* 左侧菜单样式 */
.sidebar {
    width: 240px;
    background-color: var(--primary-300);
    color: white;
    padding: 20px 0;
    transition: width 0.3s ease;
    position: relative;
}

.sidebar.collapsed {
    width: 60px;
}

.toggle-sidebar {
    position: absolute;
    right: -12px;
    top: 20px;
    width: 24px;
    height: 24px;
    background: var(--primary-200);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .toggle-sidebar {
    transform: rotate(180deg);
}

.menu-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 0px 100px 100px 0px;
}

.menu-item i {
    font-size: 20px;
    min-width: 20px;
}

.menu-item:hover {
    background-color: var(--primary-200);
}

.menu-item.active {
    background-color: var(--accent-100);
}

.sidebar.collapsed .menu-item span {
    display: none;
}

/* 自定义滚动条样式 */
/* 适用于Webkit内核浏览器(Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(104, 166, 125, 0.3);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(104, 166, 125, 0.6);
}

/* 右侧内容区域样式 */
.content {
    flex: 1;
    padding: 20px;
    background-color: var(--bg-100);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(104, 166, 125, 0.3) transparent;
    /* Firefox */
}

.content:hover {
    scrollbar-color: rgba(104, 166, 125, 0.6) transparent;
    /* Firefox - 悬停时滚动条颜色变深 */
}

/* 自动隐藏滚动条，仅在滚动时显示 */
.content:not(:hover):not(:focus):not(:active) {
    -ms-overflow-style: none;
    /* IE/Edge */
}

.content:not(:hover):not(:focus):not(:active)::-webkit-scrollbar-thumb {
    background-color: rgba(104, 166, 125, 0.1);
}

/* 为其他可滚动容器也应用同样的滚动条样式 */
.section-content,
.history-container,
.memory-process-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(104, 166, 125, 0.3) transparent;
}

.section-content:hover,
.history-container:hover,
.memory-process-list:hover {
    scrollbar-color: rgba(104, 166, 125, 0.6) transparent;
}

.section-content:not(:hover):not(:focus):not(:active)::-webkit-scrollbar-thumb,
.history-container:not(:hover):not(:focus):not(:active)::-webkit-scrollbar-thumb,
.memory-process-list:not(:hover):not(:focus):not(:active)::-webkit-scrollbar-thumb {
    background-color: rgba(104, 166, 125, 0.1);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

h1 {
    color: var(--text-100);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--primary-100);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.section-header h2 {
    margin: 0;
    color: var(--text-100);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.section-content.expanded {
    max-height: 1000px;
}

/* 系统信息卡片样式 */
.system-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background-color: var(--bg-200);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

.info-card h3 {
    margin: 0 0 10px 0;
    color: var(--text-200);
}

.info-value {
    font-size: 24px;
    color: var(--primary-300);
    font-weight: bold;
}

.info-value-small {
    font-size: 15px;
    color: var(--primary-300);
    font-weight: bold;
}

/* 设置区域样式 */
.settings {
    background-color: var(--bg-100);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.setting-item {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item label {
    min-width: 120px;
}

.setting-item input[type="text"],
.setting-item input[type="password"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
    font-size: 14px;
}

.setting-item input[type="text"]:focus,
.setting-item input[type="password"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

#save-settings {
    background-color: var(--primary-200);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#save-settings:hover {
    background-color: var(--primary-300);
}

#save-settings:active {
    background-color: var(--primary-300);
}

#save-settings:disabled {
    background-color: var(--bg-300);
    cursor: not-allowed;
}

/* 按钮样式 */
.btn {
    background-color: var(--primary-200);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-300);
}

.btn-secondary {
    background-color: var(--bg-300);
}

.btn-secondary:hover {
    background-color: var(--bg-200);
}

/* 启动器面板样式 */
.launcher-panel {
    background: var(--bg-200);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    min-height: 100px;
    position: relative;
    z-index: 100;
}

.launcher-header {
    margin-bottom: 16px;
}

.launcher-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.launcher-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 90px;
    background: var(--bg-100);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--bg-200);
    position: relative;
    padding: 12px 8px;
    text-align: center;
}

.app-item:hover {
    background: var(--primary-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.app-icon-safari {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.app-icon-chrome {
    background: linear-gradient(135deg, #f5af19, #f12711);
}

.app-icon-edge {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.app-icon-firefox {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
}

.app-icon-video {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.app-icon-music {
    background: linear-gradient(135deg, #834d9b, #d04ed6);
}

.app-icon-document {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.app-icon-image {
    background: linear-gradient(135deg, #f83600, #f9d423);
}

.app-icon-code {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.app-icon-game {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.app-icon-mail {
    background: linear-gradient(135deg, #4481eb, #04befe);
}

.app-icon-chat {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.app-name {
    flex-grow: 0;
    font-size: 13px;
    color: var(--text-100);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 编辑模式样式 */
.launcher-panel.edit-mode .app-item {
    padding-right: 8px;
    border: 1px dashed var(--primary-200);
}

.launcher-panel.edit-mode .app-item:hover {
    transform: none;
}

.delete-btn {
    position: absolute;
    right: -5px;
    top: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: var(--accent-100);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 10px;
    z-index: 10;
}

.launcher-panel.edit-mode .delete-btn {
    display: flex;
}

.delete-btn:hover {
    background: var(--accent-200);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn i {
    font-size: 14px;
}

.btn-secondary {
    background: var(--bg-200);
    color: var(--text-100);
}

.btn-secondary:hover {
    background: var(--bg-300);
}

.btn-secondary.active {
    background: var(--primary-100);
    color: var(--text-100);
}

#btn-add-app {
    background: var(--primary-200);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

#btn-add-app:hover {
    background: var(--primary-300);
}

#btn-add-app i {
    font-size: 12px;
}

/* 模态对话框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-100);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.modal-content h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}


.launcher-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.launcher-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.launcher-app {
    width: 64px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.launcher-app img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #eee;
}

.launcher-app.dragging {
    opacity: 0.5;
}

.launcher-app .app-name {
    font-size: 12px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.launcher-menu {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 100px;
}

.launcher-menu-item {
    padding: 8px 16px;
    cursor: pointer;
}

.launcher-menu-item:hover {
    background: #f0f0f0;
}

/* 消息提示框样式 */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 4.7s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast i {
    font-size: 16px;
}

.toast.success {
    background: var(--primary-100);
    color: var(--primary-300);
    border-left: 4px solid var(--primary-300);
}

.toast.error {
    background: #ffe5e5;
    color: #cc0000;
    border-left: 4px solid #cc0000;
}

.toast.info {
    background: #e3f2fd;
    color: #0288d1;
    border-left: 4px solid #0288d1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 番茄钟样式 */
.pomodoro-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "display"
        "settings"
        "stats";
    gap: 20px;
    margin-top: 20px;
}

/* 圆形计时器样式 */
.timer-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 30px;
}

.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    background-color: var(--bg-100);
}

.timer-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-circle-bg {
    fill: none;
    stroke: var(--bg-300);
    stroke-width: 6px;
}

.timer-circle-progress {
    fill: none;
    stroke: var(--accent-100);
    stroke-width: 6px;
    stroke-linecap: round;
    stroke-dasharray: 282.743;
    /* 2 * Math.PI * 45 精确值 */
    stroke-dashoffset: 282.743;
    /* 初始时完全不可见 */
    transition: stroke-dashoffset 0.3s linear;
}

.timer-label {
    font-size: 18px;
    color: var(--text-200);
    margin-top: 10px;
}

#pomodoro-timer {
    font-size: 56px;
    font-weight: bold;
    color: var(--primary-300);
    font-family: 'Courier New', monospace;
    z-index: 1;
}

#pomodoro-timer {
    font-size: 56px;
    font-weight: bold;
    color: var(--primary-300);
    font-family: 'Courier New', monospace;
    z-index: 1;
}
#fullscreen-pomodoro-status{
    font-size: 40px;
}

#fullscreen-pomodoro-timer {
    font-size: 100px;
    font-weight: bold;
    color: var(--primary-300);
    font-family: 'Courier New', monospace;
    z-index: 1;
}

.pomodoro-settings {
    grid-area: settings;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
}

.pomodoro-settings .setting-card {
    flex: 1;
    min-width: 0;
    /* 防止溢出 */
    display: flex;
    flex-direction: column;
}

.pomodoro-settings .setting-card h3 {
    margin-bottom: 20px;
}

.pomodoro-display {
    grid-area: display;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pomodoro-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: var(--bg-200);
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.pomodoro-stats {
    grid-area: stats;
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.pomodoro-stats .stats-card {
    flex: 1;
    max-width: 50%;
}

.setting-card,
.stats-card {
    background-color: var(--bg-200);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.setting-card:hover,
.stats-card:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.setting-card h3,
.stats-card h3 {
    margin-top: 0;
    color: var(--primary-300);
    border-bottom: 1px solid var(--bg-300);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#pomodoro-status {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-100);
    font-weight: 500;
}

#pomodoro-timer {
    font-size: 72px;
    font-weight: bold;
    color: var(--primary-300);
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.pomodoro-progress {
    width: 100%;
    height: 8px;
    background-color: var(--bg-300);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent-100);
    border-radius: 4px;
    transition: width 1s linear;
}

.pomodoro-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-200);
}

.btn-primary:hover {
    background-color: var(--primary-300);
}

.btn-warning {
    background-color: #f39c12;
}

.btn-warning:hover {
    background-color: #d35400;
}

.btn-danger {
    background-color: #e74c3c;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-danger:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-info {
    background-color: var(--primary-200);
}

.btn-info:hover {
    background-color: var(--primary-200);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}

.stats-item i {
    color: var(--primary-200);
    font-size: 18px;
}

.stats-item span:last-child {
    font-weight: bold;
    color: var(--primary-300);
}

/* 全屏模式样式 */
.pomodoro-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-100);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pomodoro-fullscreen #pomodoro-timer {
    font-size: 120px;
    margin-bottom: 30px;
}

.pomodoro-fullscreen #pomodoro-status {
    font-size: 36px;
    margin-bottom: 20px;
}

.pomodoro-fullscreen .pomodoro-progress {
    width: 60%;
    height: 12px;
    margin-bottom: 50px;
}

.pomodoro-fullscreen .pomodoro-controls {
    margin-top: 30px;
}

/* 为全屏模式添加退出按钮 */
#exit-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    color: var(--text-200);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

#exit-fullscreen:hover {
    color: var(--text-100);
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 1s infinite;
}

/* 时间设置输入框 */
.setting-item.time-setting-item {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-item.time-setting-item label {
    flex: 1;
    margin-right: 15px;
    white-space: nowrap;
}

.time-input-container {
    display: flex;
    align-items: center;
    width: 120px;
    height: 32px;
    border-radius: 6px;
    background-color: var(--bg-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.time-input {
    width: 60px;
    height: 100%;
    text-align: center;
    border: none;
    background-color: transparent;
    font-size: 16px;
    color: var(--text-100);
    -moz-appearance: textfield;
}

.time-input::-webkit-inner-spin-button,
.time-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.time-input:focus {
    outline: none;
    background-color: var(--bg-100);
}

.time-control-btn {
    width: 30px;
    height: 100%;
    background-color: var(--bg-300);
    border: none;
    color: var(--text-200);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.time-control-btn:hover {
    background-color: var(--primary-100);
    color: var(--text-100);
}

.time-control-btn:active {
    background-color: var(--primary-200);
    color: white;
}

.time-control-btn.decrement {
    border-right: 1px solid var(--bg-200);
}

.time-control-btn.increment {
    border-left: 1px solid var(--bg-200);
}

/* 设置输入范围时的高亮效果 */
.time-input:out-of-range {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
}

/* 关机设置样式 */
.shutdown-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    max-width: 800px;
}

.shutdown-time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-separator {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-200);
}

.shutdown-status-card {
    background-color: var(--bg-200);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-icon {
    font-size: 24px;
    color: var(--primary-200);
}

#shutdown-result {
    font-size: 16px;
    color: var(--primary-300);
    font-weight: 500;
}

/* 添加图标到标题 */
.setting-card h3 i {
    margin-right: 8px;
    color: var(--primary-200);
}

#shutdown .setting-card .setting-item {
    margin-bottom: 0;
}

/* 为了移动端适配 */
@media (max-width: 768px) {
    .shutdown-time-inputs {
        flex-direction: column;
        align-items: flex-start;
    }

    .time-separator {
        display: none;
    }

    #shutdown .time-input-container {
        margin-bottom: 10px;
        width: 100%;
    }
}

/* 首页样式优化 */
.home-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.section-wrapper {
    background-color: var(--bg-200);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-wrapper .section-header {
    margin-bottom: 17px;
    border-radius: 0;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 22px;
    color: var(--primary-200);
    margin-right: 15px;
    flex-shrink: 0;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.progress-container {
    height: 6px;
    background-color: var(--bg-300);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

#cpu-progress-bar {
    background-color: var(--primary-200);
}

#memory-progress-bar {
    background-color: var(--accent-100);
}

#disk-progress-bar {
    background-color: #3498db;
}

.memory-process-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.memory-process-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: var(--bg-100);
    border-radius: 6px;
    transition: background-color 0.2s;
}

.memory-process-item:hover {
    background-color: var(--primary-100);
}

.memory-process-item i {
    font-size: 16px;
    color: var(--text-200);
    margin-right: 10px;
}

.memory-process-name {
    flex-grow: 1;
    font-size: 14px;
    color: var(--text-100);
}

.memory-process-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-300);
    padding: 4px 8px;
    background-color: var(--bg-200);
    border-radius: 4px;
}

.info-label {
    color: var(--text-200);
    font-size: 14px;
    margin-right: 5px;
    min-width: 50px;
}

/* 启动器空状态提示 */
.launcher-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-200);
    text-align: center;
}

.launcher-empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--bg-300);
}

.launcher-empty-state p {
    font-size: 16px;
    max-width: 250px;
}

/* 当没有应用时显示空状态 */
.launcher-list:empty+.launcher-empty-state {
    display: flex;
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .system-info {
        grid-template-columns: 1fr;
    }

    .info-card {
        margin-bottom: 10px;
    }
}

/* 系统设置样式 */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    max-width: 800px;
}

.setting-item.checkbox-setting-item {
    margin-bottom: 15px;
    padding: 2px 0;
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    padding-left: 35px;
}

.checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: var(--bg-100);
    border-radius: 4px;
    border: 2px solid var(--bg-300);
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked~.checkbox-custom {
    background-color: var(--primary-200);
    border-color: var(--primary-200);
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked~.checkbox-custom:after {
    display: block;
}

.checkbox-text {
    margin-left: 10px;
    font-size: 16px;
    color: var(--text-100);
}

.text-setting-item {
    margin-bottom: 20px;
}

.text-setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-100);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.input-container:focus-within {
    transform: translateY(-2px);
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-200);
    transition: width 0.3s ease, left 0.3s ease;
    z-index: 1;
}

.input-container:focus-within .input-focus-border {
    width: 100%;
    left: 0;
}

.input-icon {
    position: absolute;
    left: -20px;
    color: var(--text-200);
    font-size: 16px;
    transition: color 0.3s ease;
}

.input-container:focus-within .input-icon {
    color: var(--primary-200);
}

.text-input {
    width: 100%;
    padding: 12px 12px 12px 35px;
    border: 1px solid var(--bg-300);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--bg-100);
    color: var(--text-100);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.text-input:hover {
    border-color: var(--primary-100);
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-200);
    box-shadow: 0 0 0 3px rgba(104, 166, 125, 0.2);
    background-color: white;
}

/* 输入框验证状态样式 */
.text-input.is-valid {
    border-color: #27ae60;
    padding-right: 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2327ae60' viewBox='0 0 16 16'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
}

.text-input.is-invalid {
    border-color: #e74c3c;
    padding-right: 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23e74c3c' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
}

.text-input::placeholder {
    color: var(--text-200);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.text-input:focus::placeholder {
    opacity: 0.4;
}

/* 密码切换按钮样式优化 */
.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-200);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.password-toggle:hover {
    color: var(--primary-200);
    background-color: rgba(104, 166, 125, 0.1);
}

.password-toggle.pulse-animation {
    animation: pulse-btn 0.5s ease;
}

@keyframes pulse-btn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.setting-actions {
    display: flex;
    gap: 15px;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #219653;
}

.setting-status-card {
    background-color: var(--bg-200);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

#settings-status {
    font-size: 16px;
    color: var(--primary-300);
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .setting-actions {
        flex-direction: column;
        width: 100%;
    }

    .setting-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 按钮动画效果 */
.btn-animated {
    animation: btn-pulse 0.5s ease;
}

@keyframes btn-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* 重置按钮特殊效果 */
#reset-settings:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    transition: left 0.5s ease;
}

#reset-settings:hover:before {
    left: 100%;
}

@media (max-width: 768px) {
    .pomodoro-stats {
        flex-direction: column;
    }

    .pomodoro-stats .stats-card {
        max-width: 100%;
    }
}

@media (max-width: 960px) {
    .pomodoro-settings {
        flex-direction: column;
    }

    .pomodoro-settings .setting-card {
        width: 100%;
    }

    .setting-item.time-setting-item {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .setting-item.time-setting-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .setting-item.time-setting-item label {
        margin-bottom: 5px;
        margin-right: 0;
    }

    .time-input-container {
        width: 100%;
        max-width: none;
    }

    .pomodoro-controls {
        flex-direction: column;
        width: 100%;
    }

    .pomodoro-controls .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    #pomodoro-timer {
        font-size: 60px;
    }
}

/* 网络测速样式 */
.network-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    max-width: 800px;
}

.network-results-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.speed-test-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.speed-test-info {
    margin-bottom: 10px;
}

.speed-test-info p {
    margin: 5px 0;
    color: var(--text-100);
}

.test-note {
    font-size: 14px;
    color: var(--text-200);
    font-style: italic;
}

.speed-test-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.speed-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
}

.speed-gauge {
    width: 120px;
    height: 60px;
    background-color: var(--bg-300);
    border-radius: 60px 60px 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.gauge-value {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--accent-100);
    transition: height 0.8s ease-out;
}

#download-gauge {
    background-color: var(--primary-200);
}

#upload-gauge {
    background-color: var(--accent-100);
}

.speed-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-300);
    margin: 5px 0;
}

.speed-unit {
    font-size: 14px;
    color: var(--text-200);
}

.ping-icon {
    font-size: 32px;
    color: var(--primary-200);
    margin-bottom: 10px;
}

.ping-icon i {
    animation: pulse 1.5s infinite;
}

.history-container {
    padding: 10px 0;
    position: relative;
    min-height: 150px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.history-table th,
.history-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--bg-300);
}

.history-table th {
    background-color: var(--bg-200);
    color: var(--text-100);
    font-weight: 500;
}

.history-table tr:hover {
    background-color: var(--bg-100);
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text-200);
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.history-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--bg-300);
}

.history-empty p {
    font-size: 16px;
}

.history-table:not(:empty)+.history-empty {
    display: none;
}

/* 网络测速 - 响应式设计 */
@media (max-width: 768px) {
    .network-results-container {
        grid-template-columns: 1fr;
    }

    .speed-gauge {
        width: 100px;
        height: 50px;
    }

    .history-table th,
    .history-table td {
        padding: 8px 5px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .history-table {
        font-size: 12px;
    }

    .history-table th:nth-child(1),
    .history-table td:nth-child(1) {
        display: none;
    }
}

/* 网络测速样式增强 */
.test-progress-indicator {
    margin: 15px 0;
    padding: 10px;
    background-color: var(--bg-100);
    border-radius: 8px;
    border: 1px solid var(--bg-300);
}

.progress-label {
    font-size: 14px;
    color: var(--text-100);
    margin-bottom: 8px;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--bg-300);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background-color: var(--primary-200);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-percentage {
    position: absolute;
    right: 5px;
    top: -2px;
    font-size: 10px;
    color: var(--text-200);
    font-weight: 500;
}

.network-info {
    margin: 15px 0;
    padding: 12px;
    background-color: var(--bg-100);
    border-radius: 8px;
    border: 1px solid var(--bg-300);
}

.network-info-title {
    font-weight: 500;
    color: var(--primary-300);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--bg-300);
    padding-bottom: 5px;
}

.network-info-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 14px;
}

.info-label {
    color: var(--text-200);
}

.info-value {
    color: var(--text-100);
    font-weight: 500;
}

.jitter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    gap: 5px;
}

.jitter-label {
    font-size: 14px;
    color: var(--text-200);
}

/* 根据测试结果设置不同颜色的测量结果 */
.download-good {
    color: #27ae60 !important;
}

.download-average {
    color: #f39c12 !important;
}

.download-poor {
    color: #e74c3c !important;
}

/* 添加测试按钮悬停效果 */
#btn-start-test {
    background-color: var(--primary-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#btn-start-test:hover {
    background-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#btn-start-test:active {
    transform: translateY(1px);
}

#btn-start-test::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#btn-start-test:hover::before {
    left: 100%;
}

/* 响应式设计增强 */
@media (max-width: 480px) {
    .test-progress-indicator {
        padding: 8px;
    }

    .network-info {
        padding: 10px;
    }

    .network-info-item {
        flex-direction: column;
        margin-bottom: 8px;
    }

    .info-value {
        margin-top: 2px;
    }
}

/* IP地址显示区域样式 */
.ip-address-card {
    margin-bottom: 20px;
}

.ip-address-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
}

.ip-address-item {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ip-label {
    font-weight: bold;
    margin-right: 10px;
    min-width: 80px;
}

.ip-value {
    flex-grow: 1;
    font-family: monospace;
    background-color: var(--bg-100);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.btn-copy-ip {
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    color: #666;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-copy-ip:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.btn-copy-ip.copied {
    color: #27ae60;
}

/* 日历待办样式 */
.calendar-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    margin-top: 20px;
    height: calc(100vh - 140px);
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.calendar-actions,
.calendar-view-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-month {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-100);
    margin-left: 15px;
}

.calendar-main {
    min-width: 200px;
    height: 100%;
    min-height: 550px;
    background-color: var(--bg-200);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: auto;
    position: relative;
}

.calendar-main>thead {
    background-color: var(--bg-200) !important;
}

#calendar-view {
    min-width: 200px;
    height: 100%;
    min-height: 380px;
    position: relative;
}

.fc {
    height: 100% !important;
    background-color: var(--bg-200) !important;
}

.fc .fc-daygrid-day-frame {
    position: relative;
    min-height: 100%;
    border: 0.5px solid var(--bg-300) !important;
    /* min-height: 157.5px !important; */
}

.task-panel {
    background-color: var(--bg-200);
    border-radius: 10px;
    padding: 8px 15px 15px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-height: unset;
    display: flex;
    flex-direction: column;
    min-height: 700px;
    height: auto;
}

.task-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-300);
}

.task-panel-header h3 {
    margin: 0;
    color: var(--primary-300);
}

.task-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.task-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 8px;
    background-color: var(--bg-100);
    border-radius: 8px;
    border-left: 4px solid;
    /* 通过JavaScript动态设置颜色 */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.task-item.completed {
    opacity: 0.7;
    background-color: var(--bg-300);
    /* 保留JavaScript设置的颜色，但降低透明度 */
    border-left-color: inherit;
}

.task-item.completed .task-title,
.task-item.completed .task-description,
.task-item.completed .task-time {
    color: #888;
    text-decoration: line-through;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.task-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: bold;
    color: var(--text-100);
    margin-bottom: 5px;
}

.task-description {
    font-size: 14px;
    color: var(--text-200);
    margin-bottom: 8px;
    line-height: 1.4;
}

.task-time {
    font-size: 12px;
    color: var(--text-200);
    display: flex;
    align-items: center;
}

.task-time i {
    margin-right: 5px;
    font-size: 11px;
}

.task-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.task-complete-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--primary-200);
    border-radius: 4px;
    outline: none;
    flex-shrink: 0;
    position: relative;
    margin-top: 4px;
}

.task-complete-checkbox:checked {
    background-color: var(--primary-200);
    border-color: var(--primary-200);
}

.task-complete-checkbox:checked::after {
    content: "✓";
    font-size: 12px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.task-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text-200);
    text-align: center;
}

.task-empty-state i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--bg-300);
}

.task-empty-state p {
    font-size: 16px;
}

.task-list .task-item:first-child {
    display: flex;
}

.task-list:not(:empty)+.task-empty-state {
    display: none;
}

/* 任务编辑对话框样式 */
.task-edit-content {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-100);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 24px;
    margin: 20px;
}

.task-edit-content h3 {
    margin: 0 0 20px 0;
    color: var(--text-100);
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-300);
}

.task-edit-content .form-group {
    margin-bottom: 16px;
}

.task-edit-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-100);
    font-size: 14px;
}

.task-edit-content input[type="text"],
.task-edit-content input[type="date"],
.task-edit-content input[type="time"],
.task-edit-content textarea,
.task-edit-content select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--bg-300);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--bg-100);
    color: var(--text-100);
    transition: all 0.3s ease;
}

.task-edit-content textarea {
    height: 60px;
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
}

.task-edit-content .time-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.task-edit-content .time-inputs>div {
    flex: 1;
}

.task-edit-content input:focus,
.task-edit-content textarea:focus,
.task-edit-content select:focus {
    outline: none;
    border-color: var(--primary-200);
    box-shadow: 0 0 0 2px rgba(104, 166, 125, 0.1);
}

.task-edit-content .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.task-edit-content .checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--bg-300);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.task-edit-content input[type="checkbox"] {
    display: none;
}

.task-edit-content input[type="checkbox"]:checked+.checkbox-custom {
    background-color: var(--primary-200);
    border-color: var(--primary-200);
}


.task-edit-content .modal-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--bg-300);
}

.task-edit-content .modal-action-buttons {
    display: flex;
    gap: 10px;
}

.task-edit-content .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.task-edit-content .btn-primary {
    background: var(--primary-200);
    color: white;
    border: none;
}

.task-edit-content .btn-primary:hover {
    background: var(--primary-300);
}

.task-edit-content .btn-secondary {
    background: var(--bg-200);
    color: var(--text-100);
    border: none;
}

.task-edit-content .btn-secondary:hover {
    background: var(--bg-300);
}

.task-edit-content .btn-danger {
    background: var(--bg-200);
    color: var(--danger);
    border: none;
}

.task-edit-content .btn-danger:hover {
    background: var(--danger);
    color: white;
}

@media (max-width: 480px) {
    .task-edit-content {
        width: 95%;
        padding: 16px;
        margin: 10px;
    }

    .task-edit-content .time-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .task-edit-content .modal-buttons {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .task-edit-content .modal-action-buttons {
        width: 100%;
    }

    .task-edit-content .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .task-edit-content .btn-danger {
        width: 100%;
    }
}

/* 日历自定义样式 */
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--bg-300);
    background-color: var(--bg-200);
}

.fc-theme-standard .fc-scrollgrid {
    border-color: var(--bg-300);
}

.fc-day-today {
    background-color: var(--bg-300) !important;
}

.fc-event {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fc-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 月视图中任务样式，确保时间信息正确显示 */
.fc-daygrid-event {
    padding: 2px 6px !important;
    margin-top: 2px;
    margin-bottom: 2px;
}

.fc-daygrid-event .fc-event-time {
    font-size: 0.85em;
    margin-right: 3px;
    color: inherit;
    font-weight: normal;
}

/* 确保周视图和日视图有足够高度和滚动能力 */
.fc-timeGridWeek-view .fc-scrollgrid,
.fc-timeGridDay-view .fc-scrollgrid {
    min-height: 650px !important;
}

/* 周视图和日视图滚动容器 */
.fc-timegrid-slots,
.fc-timegrid-body,
.fc-scroller {
    overflow-y: auto !important;
    max-height: none !important;
}

/* 设置时间网格容器的最大高度，确保可以滚动查看全部内容 */
.fc-timegrid-body,
.fc-timegrid-slots {
    min-height: 600px !important;
}

/* 允许时间轴滚动而不被截断 */
.fc-view-harness {
    height: auto !important;
    min-height: 500px !important;
    overflow: visible !important;
}

/* 时间网格样式 */
.fc-timegrid-slot {
    height: 30px !important;
}

.fc-timegrid-axis-cushion,
.fc-timegrid-slot-label-cushion {
    color: var(--text-100);
}

/* 解决周/日视图中事件显示问题 */
.fc-timegrid-event-harness {
    margin-left: 1px;
    margin-right: 1px;
}

.fc-timegrid-event {
    border-left-width: 4px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}

.fc-v-event .fc-event-title {
    font-weight: normal;
    padding: 2px 4px;
}

.fc-h-event .fc-event-title {
    font-weight: normal;
    padding: 2px 4px;
}

.fc-daygrid-day-number {
    color: var(--text-100);
}

.fc-col-header-cell-cushion {
    color: var(--text-100);
}

/* 全天事件区域样式 */
.fc-timegrid-axis-cushion {
    color: var(--text-100);
}

.fc-timegrid-slot-label-cushion {
    color: var(--text-100);
}

.fc-timegrid-axis-frame {
    background-color: var(--bg-200);
}

.fc-timegrid-now-indicator-line {
    border-color: var(--primary-200) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .calendar-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-view-options {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .calendar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .time-inputs {
        flex-direction: column;
        gap: 10px;
    }

    .calendar-container {
        grid-template-rows: auto auto 1fr;
    }

    .calendar-main {
        min-height: 450px;
    }

    /* 提高移动设备上时间网格的可见性 */
    .fc-timegrid-slot {
        height: 25px !important;
    }

    /* 调整移动设备上的事件显示 */
    .fc-timegrid-event {
        padding: 1px 4px !important;
    }

    .fc-daygrid-event {
        margin-top: 1px;
        margin-bottom: 1px;
    }
}

@media (max-width: 480px) {

    /* 在小屏幕设备上进一步优化 */
    .calendar-main {
        min-height: 400px;
        padding: 10px;
    }

    .calendar-view-options button,
    .calendar-actions button {
        padding: 5px 10px;
        font-size: 12px;
    }

    .fc-timegrid-slot {
        height: 20px !important;
    }

    /* 在小屏幕设备上使任务面板占据更多空间 */
    .task-panel {
        max-height: 300px;
    }
}

/* 日程视图样式 */
.schedule-view-container {
    background-color: var(--bg-200);
    border-radius: 8px;
    border: 1px solid var(--bg-300);
    margin-top: 5px;
}

.schedule-task-item {
    transition: all 0.3s ease;
}

.schedule-task-item:hover {
    background-color: var(--bg-150) !important;
}

.schedule-empty-state {
    text-align: center;
    color: var(--text-200);
}

.schedule-date-section {
    background-color: var(--bg-200);
}

/* 快速关机模块样式 */
.quick-shutdown-container {
    margin-bottom: 20px;
}

.quick-shutdown-container h3 {
    color: var(--text-100);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-shutdown-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-shutdown-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-200);
    border-radius: 8px;
    padding: 20px;
    width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-shutdown-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-shutdown-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.quick-shutdown-icon i {
    font-size: 24px;
    color: var(--primary-200);
}

.quick-shutdown-option:first-child .quick-shutdown-icon {
    background-color: rgba(52, 152, 219, 0.1);
}

.quick-shutdown-option:first-child .quick-shutdown-icon i {
    color: #3498db;
}

.quick-shutdown-option:nth-child(2) .quick-shutdown-icon {
    background-color: rgba(155, 89, 182, 0.1);
}

.quick-shutdown-option:nth-child(2) .quick-shutdown-icon i {
    color: #9b59b6;
}

.quick-shutdown-option:nth-child(3) .quick-shutdown-icon {
    background-color: rgba(46, 204, 113, 0.1);
}

.quick-shutdown-option:nth-child(3) .quick-shutdown-icon i {
    color: #2ecc71;
}

.quick-shutdown-option:nth-child(4) .quick-shutdown-icon {
    background-color: rgba(149, 165, 166, 0.1);
}

.quick-shutdown-option:nth-child(4) .quick-shutdown-icon i {
    color: #95a5a6;
}

.quick-shutdown-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-100);
    text-align: center;
}

@media (max-width: 768px) {
    .quick-shutdown-options {
        justify-content: center;
        gap: 15px;
    }

    .quick-shutdown-option {
        width: calc(50% - 15px);
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .quick-shutdown-option {
        width: 100%;
    }
}

/* 日历待办新增样式 */
.calendar-stats-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.today-tasks,
.weekly-stats {
    flex: 1;
    min-height: 400px;
    max-height: 550px;
}

.weekly-stats {
    padding-top: 15px;
}

.stats-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 10px;
}

.stats-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 15px;
    background-color: var(--bg-100);
    border-radius: 10px;
}

.stats-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-200);
    margin-bottom: 5px;
}

.stats-label {
    font-size: 14px;
    color: var(--text-200);
}

.completion-rate {
    width: 100%;
    margin-top: 15px;
    background-color: var(--bg-100);
    border-radius: 10px;
    padding: 15px;
}

.rate-label {
    font-size: 14px;
    color: var(--text-200);
    margin-bottom: 5px;
}

.rate-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-100);
    margin-bottom: 8px;
}

.progress-container {
    height: 8px;
    background-color: var(--bg-300);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-200);
    border-radius: 4px;
}

.priority-bar {
    background-color: #e74c3c;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .calendar-stats-container {
        flex-direction: column;
    }

    .today-tasks,
    .weekly-stats {
        width: 100%;
    }
}

/* 首页标题和更新时间 */
.page h1 {
    margin-bottom: 5px;
}

.last-update {
    color: var(--text-200);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.refresh-btn {
    background: transparent;
    border: none;
    color: var(--primary-200);
    cursor: pointer;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.refresh-btn:hover {
    background-color: var(--primary-100);
    color: var(--primary-300);
}

/* 系统状态卡片 */
.system-status-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.status-card {
    background-color: var(--bg-200);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-100);
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cpu-card .status-icon {
    background-color: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.memory-card .status-icon {
    background-color: rgba(15, 157, 88, 0.1);
    color: #0f9d58;
}

.disk-card .status-icon {
    background-color: rgba(171, 71, 188, 0.1);
    color: #ab47bc;
}

.status-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-100);
    margin-bottom: 15px;
    line-height: 1;
}

.status-progress {
    width: 100%;
    height: 8px;
    background-color: var(--bg-100);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.status-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.cpu-card .status-progress-bar {
    background-color: #4285f4;
}

.memory-card .status-progress-bar {
    background-color: #0f9d58;
}

.disk-card .status-progress-bar {
    background-color: #ab47bc;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.status-detail-item {
    font-size: 14px;
    color: var(--text-200);
    display: flex;
    justify-content: space-between;
}

.detail-link {
    color: var(--primary-200);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    transition: color 0.3s ease;
}

.detail-link:hover {
    color: var(--primary-300);
}

/* 常用功能卡片 */
.common-functions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 25px;
}

.function-card {
    background-color: var(--bg-100);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.function-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--text-100);
}

.function-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-100);
    margin-bottom: 8px;
}

.function-desc {
    font-size: 13px;
    color: var(--text-200);
    line-height: 1.4;
}

@media (max-width: 992px) {
    .system-status-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .system-status-cards {
        grid-template-columns: 1fr;
    }

    .common-functions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .common-functions {
        grid-template-columns: 1fr;
    }

    .status-value {
        font-size: 36px;
    }
}

/* 全屏模式的圆形计时器样式 */
.pomodoro-fullscreen .timer-circle {
    width: 400px;
    height: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.pomodoro-fullscreen #pomodoro-timer {
    font-size: 72px;
}

.pomodoro-fullscreen .timer-label {
    font-size: 24px;
    margin-top: 15px;
}

/* 为不同状态添加颜色 */
.timer-circle.focus .timer-circle-progress {
    stroke: var(--accent-100);
}

.timer-circle.break .timer-circle-progress {
    stroke: #2ecc71;
}

.timer-circle.long-break .timer-circle-progress {
    stroke: #3498db;
}

@media (max-width: 480px) {
    .timer-circle {
        width: 230px;
        height: 230px;
    }

    #pomodoro-timer {
        font-size: 42px;
    }

    .timer-label {
        font-size: 16px;
    }
}

/* 番茄钟快捷时间按钮样式 */
.time-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: center;
}

.btn-quick-time {
    padding: 4px 8px;
    font-size: 12px;
    background-color: var(--bg-200);
    color: var(--text-100);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-quick-time:hover {
    background-color: var(--primary-100);
    color: var(--text-light);
}

.btn-quick-time.active {
    background-color: var(--primary-200);
    color: var(--text-light);
    border-color: var(--primary-300);
}

/* 未来倒计时样式 */
.countdown-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

#add-countdown-btn {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.countdown-card {
    background-color: var(--bg-200);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.countdown-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-200);
}

.countdown-card[data-category="节日"]::before {
    background-color: #e74c3c;
}

.countdown-card[data-category="学习"]::before {
    background-color: #3498db;
}

.countdown-card[data-category="生活"]::before {
    background-color: #2ecc71;
}

.countdown-card[data-category="其他"]::before {
    background-color: #9b59b6;
}

.countdown-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.countdown-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-100);
}

.countdown-category {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: var(--bg-300);
    color: var(--text-200);
}

.countdown-time {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.countdown-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-300);
    min-width: 60px;
    text-align: center;
}

.countdown-label {
    font-size: 12px;
    color: var(--text-200);
}

.countdown-target {
    font-size: 14px;
    color: var(--text-200);
    margin-top: 10px;
    text-align: right;
}

.countdown-edit-content {
    width: 90%;
    max-width: 500px;
}

.countdown-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: var(--text-200);
}

.countdown-empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--bg-300);
}

.countdown-empty-state p {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .countdown-cards {
        grid-template-columns: 1fr;
    }

    .countdown-card {
        margin: 0 10px;
    }

    .countdown-value {
        font-size: 28px;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .countdown-time {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .countdown-unit {
        min-width: 70px;
    }

    .countdown-value {
        font-size: 24px;
    }
}

/* 倒计时列表容器样式 */
.countdown-list-container {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-list-container h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.countdown-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.countdown-table th,
.countdown-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.countdown-table th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
}

.countdown-table tr:hover {
    background-color: var(--bg-hover);
}

.countdown-table .expired {
    color: var(--text-muted);
    background-color: var(--bg-muted);
}

.countdown-list-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
}

.countdown-list-empty-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.countdown-table .countdown-actions {
    display: flex;
    gap: 0.5rem;
}

.countdown-table .countdown-actions button {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.countdown-table .countdown-actions button:hover {
    background: var(--bg-hover);
}

/* 徽章样式 */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success);
}

.badge-danger {
    background-color: var(--danger-light);
    color: var(--danger);
}

/* 喝水提醒页面样式 */
.water-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

/* 进度圆环样式 */
.water-progress-section {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.water-progress-container {
    text-align: center;
}

.water-progress-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--bg-200);
    position: relative;
    overflow: hidden;
    margin: 0 auto 20px;
}

/* 优化水波动画 */
.water-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 38%;
    background: linear-gradient(180deg, rgba(74, 144, 226, 0.7) 0%, rgba(53, 122, 189, 0.9) 100%);
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    animation: waveMotion 3s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes waveMotion {

    0%,
    100% {
        clip-path: polygon(0% 100%,
                0% 0%,
                12.5% 5%,
                25% 0%,
                37.5% 5%,
                50% 0%,
                62.5% 5%,
                75% 0%,
                87.5% 5%,
                100% 0%,
                100% 100%);
    }

    50% {
        clip-path: polygon(0% 100%,
                0% 5%,
                12.5% 0%,
                25% 5%,
                37.5% 0%,
                50% 5%,
                62.5% 0%,
                75% 5%,
                87.5% 0%,
                100% 5%,
                100% 100%);
    }
}

.water-wave::before,
.water-wave::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
}

.water-wave::before {
    animation: wave 5s infinite linear;
    opacity: 0.5;
    border-radius: 45%;
}

.water-wave::after {
    animation: wave 3s infinite linear;
    opacity: 0.3;
    border-radius: 47%;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.water-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}



.water-target {
    font-size: 16px;
    color: var(--text-200);
    opacity: 0.8;
}

.water-quick-add {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.water-amount-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: var(--bg-200);
    color: var(--text-100);
    cursor: pointer;
    transition: all 0.3s ease;
}

.water-amount-btn:hover {
    background: var(--primary-100);
    transform: translateY(-2px);
}

.btn-add-custom {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: var(--primary-200);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-add-custom:hover {
    background: var(--primary-300);
    transform: translateY(-2px);
}

/* 记录列表样式 */
.water-records-section {
    background: var(--bg-200);
    border-radius: 10px;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    color: var(--text-100);
}

.btn-clear-history {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    background: var(--bg-300);
    color: var(--text-200);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-clear-history:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.water-records-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-200);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.record-item-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.record-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-300);
}

.record-info {
    flex: 1;
}

.record-type {
    font-weight: 500;
    color: var(--text-100);
    margin-bottom: 4px;
}

.record-time {
    font-size: 13px;
    color: var(--text-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.record-amount {
    font-weight: 600;
    color: var(--primary-300);
    padding: 4px 12px;
    border-radius: 15px;
}

.record-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    right: 15px;
    display: flex;
    gap: 10px;
}

.record-item:hover .record-actions {
    opacity: 1;
}

.btn-delete-record {
    padding: 6px;
    border: none;
    background: var(--danger-light);
    color: var(--danger);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.btn-delete-record:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
}

/* 自定义记录对话框样式 */
.water-record-content {
    max-width: 400px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-200);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-100);
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-200);
    cursor: pointer;
    padding: 5px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.btn-close:hover {
    color: var(--danger);
}

#water-record-form .form-group {
    margin-bottom: 20px;
}

#water-record-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-100);
    font-weight: 500;
}

#water-record-form input,
#water-record-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--bg-300);
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease;
}

#water-record-form input:focus,
#water-record-form select:focus {
    border-color: var(--primary-200);
    outline: none;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-add-record {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    background: var(--primary-200);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-add-record:hover {
    background: var(--primary-300);
    transform: translateY(-2px);
}

/* 趋势图表样式 */
.water-trends-section {
    background: var(--bg-200);
    border-radius: 10px;
    padding: 20px;
    min-height: 515px;
}

.trend-period-selector {
    display: flex;
    gap: 10px;
}

.trend-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    background: var(--bg-300);
    color: var(--text-200);
    cursor: pointer;
    transition: all 0.3s ease;
}

.trend-btn.active {
    background: var(--primary-200);
    color: white;
}

/* 健康状态样式 */
.water-health-section {
    background: var(--bg-200);
    border-radius: 10px;
    padding: 20px;
}

.health-score-card {
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: 10px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
}

.health-score {
    text-align: center;
    margin-bottom: 20px;
}

.score-number {
    font-size: 48px;
    font-weight: bold;
    display: block;
}

.score-text {
    font-size: 14px;
    opacity: 0.8;
}

.health-indicators {
    display: flex;
    justify-content: space-around;
}

.indicator {
    text-align: center;
}

.indicator-label {
    font-size: 12px;
    opacity: 0.8;
    display: block;
}

.indicator-value {
    font-size: 24px;
    font-weight: bold;
}

.health-advice {
    background: white;
    border-radius: 10px;
    padding: 15px;
}

.health-advice h4 {
    margin: 0 0 10px 0;
    color: var(--text-100);
}

.advice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advice-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-200);
    font-size: 14px;
}

.advice-list li i {
    color: var(--primary-200);
}

/* 设置面板样式 */
.water-settings-section {
    background: var(--bg-200);
    border-radius: 10px;
    padding: 20px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: var(--text-100);
    font-weight: 500;
}

.input-group {
    display: flex;
    gap: 15px;
}

.input-item {
    flex: 1;
}

.input-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-200);
}

.input-item input,
.input-item select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--bg-300);
    border-radius: 5px;
    background: white;
}

.reminder-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reminder-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-300);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-200);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .water-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .water-progress-circle {
        width: 250px;
        height: 250px;
    }

    .input-group {
        flex-direction: column;
    }

    .water-quick-add {
        flex-direction: column;
    }

    .water-amount-btn,
    .btn-add-custom {
        width: 100%;
    }
}

/* 记录时间差样式 */
.time-diff {
    font-size: 12px;
    color: var(--text-300);
    opacity: 0.8;
    background: var(--bg-200);
    padding: 2px 6px;
    border-radius: 10px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-200);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-100);
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* 水相关的Toast样式 */
.toast-water {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.toast-water.show {
    transform: translateX(0);
}

.toast-water.hide {
    transform: translateX(120%);
}

.toast-water i {
    font-size: 20px;
}

/* 记录项动画 */
.record-item {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .toast-water {
        left: 20px;
        right: 20px;
        transform: translateY(120%);
    }

    .toast-water.show {
        transform: translateY(0);
    }

    .toast-water.hide {
        transform: translateY(120%);
    }
}

/* ... existing code ... */
.calendar-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.calendar-dialog-content {
    background: var(--bg-100);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: dialog-fade-in 0.3s ease;
}

.calendar-dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-100);
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.calendar-dialog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.calendar-dialog-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.calendar-dialog-close:hover {
    background: var(--bg-200);
    color: var(--text-primary);
}

.calendar-dialog-body {
    padding: 24px;
}

.calendar-form-group {
    margin-bottom: 20px;
}

.calendar-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.calendar-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-200);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.calendar-form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color-alpha);
    outline: none;
}

.calendar-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.calendar-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.calendar-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.calendar-form-checkbox input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.calendar-form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.calendar-dialog-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: var(--bg-100);
    border-radius: 0 0 16px 16px;
}

.calendar-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-btn-secondary {
    background: var(--bg-200);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.calendar-btn-secondary:hover {
    background: var(--bg-300);
}

.calendar-btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.calendar-btn-primary:hover {
    background: var(--primary-color-dark);
}

@keyframes dialog-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media (max-width: 640px) {
    .calendar-dialog {
        padding: 16px;
    }

    .calendar-dialog-content {
        max-height: 100vh;
        border-radius: 12px;
    }

    .calendar-dialog-header {
        padding: 16px 20px;
    }

    .calendar-dialog-body {
        padding: 20px;
    }

    .calendar-dialog-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .calendar-btn {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .calendar-dialog-content {
        background: var(--bg-800);
    }

    .calendar-form-input {
        background: var(--bg-700);
    }

    .calendar-btn-secondary {
        background: var(--bg-700);
    }

    .calendar-btn-secondary:hover {
        background: var(--bg-600);
    }
}

/* ... existing code ... */

#task-edit-modal .form-group {
    margin-bottom: 5px !important;
    gap: 0px !important;
}

#task-edit-modal .time-inputs {
    flex-direction: row;
}

#countdown-category {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#task-description {
    width: auto !important;
}

#countdown-edit-modal input,
select {
    background-color: var(--bg-100) !important;
}

/* 剪贴板管理样式 */
.clipboard-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--bg-100);
}

.clipboard-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 25px 25px 0px;
    background-color: var(--bg-100);
    border-bottom: 1px solid var(--border-color);
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-100);
    cursor: pointer;
}

.auto-monitor {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-200);
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-300);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.clipboard-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    background-color: var(--bg-100);
}

.clipboard-history-section {
    width: 360px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background-color: var(--bg-200);
}

.section-header {
    padding: 16px;
    margin: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.header-actions {
    display: flex;
    gap: 8px;
}

.clipboard-filter-bar {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.type-filters {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.type-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px;
    border-radius: 100%;
    background-color: var(--bg-200);
    color: var(--text-200);
    border: 1px solid var(--border-color);
    cursor: pointer;
    white-space: nowrap;
}

.type-filter.active {
    background-color: #2196F3;
    color: white;
    border-color: #2196F3;
}

.clipboard-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.clipboard-item {
    background-color: var(--bg-100);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.clipboard-item:hover {
    transform: translateX(5px);
    background-color: var(--bg-300);
}

.clipboard-item.active {
    border-color: #2196F3;
}

.clipboard-item.pinned {
    border-left: 3px solid #2196F3;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-type {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-200);
    font-size: 0.9em;
}

.item-size {
    color: var(--text-300);
    font-size: 0.85em;
}

.pin-indicator {
    color: #2196F3;
}

.item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clipboard-item:hover .item-actions {
    opacity: 1;
}

.btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-300);
    border: 1px solid var(--border-color);
    color: var(--text-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-icon:hover {
    background-color: var(--bg-400);
    color: var(--text-100);
}

.btn-icon i.active {
    color: #2196F3;
}

.item-content {
    margin: 8px 0;
    color: var(--text-100);
    line-height: 1.5;
    word-break: break-word;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    color: var(--text-300);
    font-size: 0.85em;
}

.editor-text,
.editor-link {
    font-family: inherit;
}

.editor-code,
.editor-json {
    font-family: monospace;
}

/* 编辑器工具栏 */
.editor-toolbar {
    display: flex;
    gap: 8px;
    padding: 8px;
    background-color: var(--bg-200);
    border-radius: 4px;
}

.editor-toolbar .btn-text {
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-toolbar .btn-text:hover {
    background-color: var(--bg-300);
}

/* 编辑器底栏 */
.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: var(--bg-200);
    border-radius: 4px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-200);
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.clipboard-footer {
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-200);
}

.item-count {
    color: var(--text-200);
    font-size: 14px;
}

.footer-actions {
    display: flex;
    gap: 16px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-text:hover {
    background-color: var(--bg-300);
}

.clipboard-preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-200);
    padding: 24px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.content-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-200);
}

.content-size {
    color: var(--text-300);
    font-size: 14px;
}

.preview-content {
    flex: 1;
    background-color: var(--bg-100);
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow-y: auto;
}

.preview-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-200);
    border: 1px solid var(--border-color);
    color: var(--text-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background-color: var(--bg-300);
    color: var(--text-100);
}

.preview-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-100);
    white-space: pre-wrap;
    word-break: break-word;
}

.preview-editor {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.editor-toolbar {
    display: flex;
    gap: 8px;
}

#edit-clipboard-content {
    flex: 1;
    min-height: 200px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-100);
    color: var(--text-100);
    font-size: 16px;
    line-height: 1.6;
    resize: none;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-200);
    cursor: pointer;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .clipboard-main {
        flex-direction: column;
    }

    .clipboard-history-section {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .clipboard-preview-section {
        padding: 16px;
    }
}

#toast-container {
    z-index: 99999;
    position: fixed;
    bottom: 0;
    right: 0;
}
#search-clipboard{
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 7px;
    width: 200px;
    font-size: 14px;
    background-color: var(--bg-100);
}

.settings-panel{
    background-color: var(--bg-100);
    padding: 20px;
}
.clipboard-empty-state{
    text-align: center;
}

/* 喝水提醒 */
.water-trend-chart .chart-container{
    padding: 0px !important;
    width: 90% !important;
    height: 350px !important;
    margin-top: 45px !important;
}

/* 总览页面快捷卡片 */
.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.quick-card {
    background: var(--bg-200);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: static !important;
}
.quick-card:hover{
    position: static !important;
}

.quick-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.quick-card-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.quick-card-header h3 i {
    color: var(--primary-color);
}

.quick-card-header .view-all {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quick-card-header .view-all:hover {
    text-decoration: underline;
}

.quick-card-content {
    padding: 15px 20px;
}

/* 今日待办卡片 */
.tasks-list {
    margin-bottom: 15px;
}

.tasks-list .task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--text-200);
}

.tasks-list .task-item:last-child {
    border-bottom: none;
}

.tasks-list .task-checkbox {
    color: var(--primary-200);
    cursor: pointer;
}

.tasks-list .task-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tasks-list .task-title {
    font-size: 14px;
    color: var(--text-color);
}

.tasks-list .task-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-add-task {
    width: 100%;
    padding: 8px;
    border: 1px dashed var(--border-color);
    background: none;
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add-task:hover {
    background: var(--bg-100);
    border-color: var(--primary-color);
}

/* 倒计时卡片 */
.countdown-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.countdown-empty i {
    font-size: 24px;
    margin-bottom: 8px;
}

.countdown-empty p {
    margin: 0;
    font-size: 14px;
}

.nearest-countdown-item {
    text-align: center;
    padding: 10px;
    background-color: var(--bg-300);
}

.countdown-title {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
}

#nearest-countdown .countdown-time {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;

}

.countdown-date {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 快捷操作卡片 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: var(--bg-300);
    color: var(--text-100);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn i {
    font-size: 24px;
}

.quick-action-btn span {
    font-size: 12px;
}

.quick-action-btn:hover {
    background: var(--bg-300);
    transform: translateY(-2px);
}

.shutdown-btn {
    color: #e74c3c;
}

.restart-btn {
    color: #3498db;
}

.sleep-btn {
    color: #9b59b6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .quick-cards {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}
.task-item-index{
    padding: 10px !important;
}
#other .setting-item{
    background-color: var(--bg-200);
}
.show{
    display: flex;
}

/* 禁用状态的按钮样式 */
.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 文本格式化 */

#text-format .input-section, #text-format .output-section {
    margin-bottom: 20px;
}
#text-format label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
#text-format textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    border: 1px solid var(--bg-300);
    border-radius: 4px;
    resize: vertical;
    font-family: monospace;
    background-color: var(--bg-100);
    color: var(--text-100);
}
#text-format button {
    background-color: var(--btn-100);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}
#text-format button:hover {
    background-color: var(--primary-300);
}
#text-format .buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
#text-format .copy-btn {
    background-color: var(--success);
}
#text-format .copy-btn:hover {
    background-color: var(--primary-300);
}
#text-format .clear-btn {
    background-color: var(--danger);
}
#text-format .clear-btn:hover {
    background-color: var(--accent-200);
}
#text-format .instructions {
    background-color: var(--bg-100);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-200);
}